package com.rongxun.hbwallet.mvp.contract;

import com.rongxun.base.IBase;
import com.rongxun.hbwallet.model.Response;
import com.rongxun.utils.wallet.ETHWallet;

import io.reactivex.Flowable;

/**
 * 创建者     庄丰泽
 * 创建时间   2018/8/8 14:52
 * 描述	      创建钱包
 */


public interface ICreateWallet extends IBase {

    interface IView extends IBase.IView {
        void jumpToWalletBackUp(ETHWallet wallet);

        void showSaveWalletResult(ETHWallet wallet);
    }

    interface IPresenter extends IBase.IPresenter {
        void createWallet(String name, String pwd, String confirmPwd, String pwdReminder);

        void saveWallet(String userId, ETHWallet wallet);

        boolean walletNameRepeatChecking(String name);
    }

    interface IModel extends IBase.IModel {
        Flowable<Response<String>> saveWallet(String userId, String address);
    }
}
